package com.scalar.forecast.forecastSetup;

/**
 * User: Sujan Kumar
 * Date: Feb 7, 2005
 * Time: 5:36:06 PM
 */
public class LevelBean
{
    private int levelId = -1;
    private boolean selected;
    private String levelName;
    private String levelOrder;

    public LevelBean ( )
    {
        levelId = -1;
        selected = false;
        levelName = null;
        levelOrder = "0";
    }
    public LevelBean ( String levelName, String levelOrder, boolean isSelected )
    {
        setLevelName( levelName );
        setLevelOrder(levelOrder );
        this.selected = isSelected;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }
    public int getLevelId() {
        return levelId;
    }

    public void setLevelId(int levelId) {
        this.levelId = levelId;
    }

    public String getLevelName() {
        return levelName;
    }

    public void setLevelName(String levelName) {
        this.levelName = ( levelName == null ? null : levelName.trim() );
    }

    public String getLevelOrder() {
        return levelOrder;
    }

    public void setLevelOrder(String levelOrder) {
        this.levelOrder = ( levelOrder == null ? null : levelOrder.trim() );
    }
}
